<%-- 
    Document   : resultadoCadastrado
    Created on : 30/05/2013, 16:52:09
    Author     : jcrbsa
--%>
<%@ page import="bean.Candidato"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Candidatos Cadastros</title>
    </head>
    <body>
        <h1>Candidatos Cadastros</h1>

        <table id="lista">
            <tr>

            </tr>
            <c:if test="${empty colecao}">
                <tr>
                    <th colspan="4">Nenhum funcionário cadastrado.</th>
                </tr>	
            </c:if>
            <c:if test="${not empty colecao}">
                <tr>
                    <th> id</th>  <th>cpf</th>
                    <th>nome</th>  
                    <th>email</th>  
                </tr>
                <c:forEach items="${sessionScope.colecao}" var="user" varStatus="i" >
                    <tr>
                        <td> <c:out value="${i.index}"/></td>  <td>${user.cpf}</td>
                        <td>${user.nome}</td>  
                        <td>${user.email}</td>  
                    </tr>
                </c:forEach>
            </c:if>
        </table>
        Status: <c:out value="${user}"/>
        <!-- <a href="index.jsp">Deslogar</a>-->
    </body>
</html>
